package com.huaao.micropolice.core.repository.system;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.huaao.micropolice.core.model.system.Area;
import com.huaao.micropolice.core.model.system.Dict;
import com.huaao.micropolice.core.repository.BaseDao;

@Repository
public class DictDao extends BaseDao{
	
	public List<Dict> queryDictType(String id){
		List<Dict> items = getSession().createQuery("FROM Dict where parentId = ?").setString(0, id).list();
		return items;
	}
}
